import React from 'react';
import Loadable from 'react-loadable';

//通用的过场组件
function GlobalLoading() {
    return (
        <div></div> //懒加载
    )
}
const AsyncComponent = (loader, loading = GlobalLoading)=> {
  return Loadable({
      loader,
      loading:GlobalLoading,
  })
}

export default AsyncComponent